xend: fix vncconsole option
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 4 Feb 2009 12:43:11 +0000 (12:43 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 4 Feb 2009 12:43:11 +0000 (12:43 +0000)
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/xend/image.py
tools/python/xen/xm/create.py

index 9db58e2153ca92923af780120450ae286c5d0bb4..99111c9cccc12163d7b8959fde5b5e3a8a2beed1 100644 (file)
@@ -372,8 +372,6 @@ class ImageHandler:
             env['DISPLAY'] = self.display
         if self.xauthority:
             env['XAUTHORITY'] = self.xauthority
-        if self.vncconsole:
-            args = args + ([ "-vncviewer" ])
         unique_id = "%i-%i" % (self.vm.getDomid(), time.time())
         sentinel_path = sentinel_path_prefix + unique_id
         sentinel_path_fifo = sentinel_path + '.fifo'
index 31d3623749ab6cf402726d987479582c96f036ec..f87f5ccc53f9030b5e3ab4fc6dc76eb1ccd2b85c 100644 (file)
@@ -1337,7 +1337,7 @@ def main(argv):
     elif not opts.is_xml:
         dom = make_domain(opts, config)
         
-    if opts.vals.vncviewer:
+    if opts.vals.vncconsole:
         domid = domain_name_to_domid(sxp.child_value(config, 'name', -1))
         vncviewer_autopass = getattr(opts.vals,'vncviewer-autopass', False)
         console.runVncViewer(domid, vncviewer_autopass, True)